using System;

namespace Urbania
{
#if WINDOWS || XBOX
    static class Program
    {
        public static GUI.LuaVM lua;
        private static Components.ComponentManager cManager;

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            lua = new GUI.LuaVM();
            Game1 game = new Game1(ref lua);
            cManager = new Components.ComponentManager();
            Components.ComponentManager.SetComponentManager(game, ref lua);
            lua.Register("BeginGame", cManager, cManager.GetType().GetMethod("BeginGame"));

            //using (game)
            //{
                game.Run();
            //}
        }
    }
#endif
}

